package com.common.dataStructures2
{
	dynamic public class Array2 extends Array
	{
		private var _numColumns : int;
		private var _numRows : int;
		
		public function Array2(columns:int, rows:int)
		{
			super();			
			_numColumns = columns;
			_numRows = rows;
		}
		
		public function getElement(column, row) : Object {
//			trace(column, row, "id ", this[row * _columns + column]);
			return this[row * _numColumns + column] as Object;
		}
		
		
		
		public function rezize(numColumns, numRows) : void {
			_numColumns = numColumns;
			_numRows = numRows;
		}
		
		public function get numColumns():int{
			return _numColumns;
		}

		public function get numRows():int{
			return _numRows;
		}

	}
}